	package client;
	
	import java.io.Serializable;
	import java.net.InetAddress;
	import java.net.Socket;
	
	import comm.ClientPriority;
	
	public class ClientData implements Serializable {
		/**
		 * 
		 */
		private static final long serialVersionUID = 1L;
		private long taskCounter = 0;
		private long id = 0;
		private int port = 0;
		private String ip = "";
		private int problemNumber;
		private int version;
		private ClientPriority clientPriority;
		private long totalNumberOfTasksDone = 0;
	
		public ClientData(String ip, int port) {
			super();
			this.ip = ip;
			this.port = port;
	
		}
	
		public void setId(long id){
			this.id=id;
		}
		public long getId() {
			return id;
		}
	
		public int getProblemNumber() {
			return problemNumber;
		}
	
		public void setProblemNumber(int problemNumber) {
			this.problemNumber = problemNumber;
		}
	
		public int getVersion() {
			return version;
		}
	
		public void setVersion(int version) {
			this.version = version;
		}
	
	
	
		public long getTotalNumberOfTasksDone() {
			return totalNumberOfTasksDone;
		}
	
		public void addTotalNumberOfTasksDone() {
			this.totalNumberOfTasksDone++;
		}
	
	
		public String getIpAdress(){
			return ip;
		}
		public int getPort(){
			return port;
		}
	
		public void setClientPriority(ClientPriority clientPriority) {
			this.clientPriority = clientPriority;
		}
	
		public ClientPriority getClientPriority() {
			return clientPriority;
		}
	
		public void setTotalNumberOfTasksDone(int totalNumberOfTasksDone) {
			this.totalNumberOfTasksDone = totalNumberOfTasksDone;
		}
	
		public void addTaskCounter() {
			this.taskCounter++;
	
		}
	
		public long getTaskCounter() {
			return this.taskCounter;
	
		}
	
	}
